package cate.game.pvp.throne.data.trial;

import cate.game.role.RoleSimpleBase;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("选拔赛排行榜玩家数据")
public class TBTrialRank {

	public static final String COLLECTION = "tb-trial-rank";

	@NoteField(value = "该条记录所归属的主角de快照")
	public RoleSimpleBase owner;

	@NoteField(value = "记录上榜时间")
	public long recordTime;

	@NoteField(value = "积分")
	public long value;

	public TBTrialRank() {
	}

	public TBTrialRank(RoleSimpleBase owner, long value) {
		this.owner = owner;
		this.value = value;
		this.recordTime = System.currentTimeMillis();
	}

	public void read(RoleSimpleBase owner, long value){
		this.owner = owner;
		this.value = value;
		this.recordTime = System.currentTimeMillis();
	}
}
